//
// Created by Administrator on 2021/01/04 004.
//

#ifndef CPPDEMO_INNERTHREADDEMO_H
#define CPPDEMO_INNERTHREADDEMO_H


#include <iostream>
#include <thread>
#include <functional>
#include <mutex>

using namespace std;
using namespace std::placeholders;

class InnerThreadDemo{
public:
    InnerThreadDemo():num(5){};

    void stepIt(const int& step);
    void minusStep();

    void startCalc();
private:
    int num;
    mutex mtx;
};
#endif //CPPDEMO_INNERTHREADDEMO_H
